package com.ruan.openfeign;

import com.ruan.pojo.User;
import org.springframework.stereotype.Component;

/**
 * @ClassName:UserCenterOpenfeignFallBack
 * @Author:阮昇
 * @Description:
 * @Datetime: 2023/6/20 15:00
 **/
@Component
public class UserCenterOpenfeignFallBack implements UserCenterOpenfeign{
    @Override
    public User getUserById(Integer id) {
        User user = new User();
        user.setUserName("默认用户");
        return user;
    }
}
